package com.quwan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author quan
 * @date 2021-07-27 16:05
 */


@Data
@Accessors(chain = true)
@TableName(value = "job_run_state_info")
public class JobRunStateInfo {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 类名
     */
    @TableField(value = "code")
    private String code;

    /**
     * 任务类型
     */
    @TableField(value = "type")
    private Byte type;

    @TableField(value = "name")
    private String name;

    /**
     * HH:MM:SS
     */
    @TableField(value = "last_run_time")
    private LocalDateTime lastRunTime;

    @TableField(value = "last_run_use_time")
    private Integer lastRunUseTime;



    /**
     * 成功 1
     * 失败 0
     */
    @TableField(value = "last_run_state")
    private Byte lastRunState;

    /**
     * 成功：运行提示信息
     * 失败：运行错误信息
     */
    @TableField(value = "last_run_message")
    private String lastRunMessage;

    @TableField(value = "remark")
    private String remark;

    @TableField(value = "temp1")
    private String temp1;

    @TableField(value = "temp2")
    private String temp2;

    @TableField(value = "temp3")
    private String temp3;

    @TableField(value = "temp4")
    private String temp4;

    @TableField(value = "temp5")
    private String temp5;
}